package com.bingo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.common.R;

import com.bingo.entity.Medication;
import com.bingo.entity.dto.everyDayForm.EveryDayMedication;
import com.bingo.entity.dto.resp.RespSiteMedication;
import com.bingo.entity.dto.resp.MedicationRecord;

import java.sql.Date;
import java.util.List;

public interface MedicationService extends IService<Medication> {

    //新增用药记录
    R add(Medication medication);

    //按塘号与时间段查询用药记录
    List<EveryDayMedication> selectEveryDayMedication(List<String> poolNos, Date startTime, Date endTime);


    //查场的用药记录
    List<RespSiteMedication> selectSiteMedication(List<String> siteNos, Date startTime, Date endTime);

    //查询用药记录
    List<MedicationRecord> selectMedicationRecord(List<String> poolNos, Date startTime, Date endTime,String userId);
    //删除用药记录
    boolean deleteMedicationRecord(Medication medication);
    //更新用药记录
    boolean update(Medication medication) ;

}

